package Pieces;

public class L extends Piece {
    public static int PROBABILITY = 15; //percent chance of this piece being selected

    private BlockType[][] ellArrayUpright = {
			{BlockType.NONE, BlockType.PURPLE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.PURPLE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.PURPLE, BlockType.PURPLE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] ellArrayRight = {
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.PURPLE, BlockType.PURPLE, BlockType.PURPLE, BlockType.NONE},
			{BlockType.PURPLE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] ellArrayDown = {
			{BlockType.PURPLE, BlockType.PURPLE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.PURPLE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.PURPLE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] defaultArray = {
			{BlockType.NONE, BlockType.NONE, BlockType.PURPLE, BlockType.NONE},
			{BlockType.PURPLE, BlockType.PURPLE, BlockType.PURPLE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    public L() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public BlockType[][] getCurrentBlockArray() {
		switch(currentState) {
			case DEFAULT:
				return defaultArray;
			case FIRST:
				return ellArrayUpright;
			case SECOND:
				return ellArrayRight;
			default:
				return ellArrayDown;
		}
	}

}
